lcPaint_DrawText2 Home

Draws a text string between 2 points, using active font.

 BOOL lcPaint_DrawText2 (
   HANDLE hLcWnd,
   double X1,
   double Y1,
   double X2,
   double Y2,
   int Align,
   LPCWSTR szText
 );

Parameters
hLcWnd
  Handle to LiteCAD graphics window.
X1 Y1
  Text start point.
X2 Y2
  Text end point.
Align
  Can be one of the values:
LC_TA_ALIGNED - Adjust Height (width scale is LC_PROP_G_TEXT_WS)
LC_TA_FIT - Adjust Width scale (height is LC_PROP_G_TEXT_H)
szText
  Text string.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

Remarks

  Additional text parameters are got from global properties:

Property Type Access Meaning
LC_PROP_G_TEXT_H float RW Text height (if Align=LC_TA_FIT)
LC_PROP_G_TEXT_WS float RW Width scale (if Align=LC_TA_ALIGNED)
LC_PROP_G_TEXT_CSPACE float RW Charspace coefficient (0.0 - 3.0)
LC_PROP_G_TEXT_OBL float RW Oblique angle
LC_PROP_G_TEXT_UPDOWN bool RW Upside-down direction
LC_PROP_G_TEXT_BACK bool RW Backward direction
LC_PROP_G_TEXT_FILL bool RW Filled characters
LC_PROP_G_TEXT_BORDER bool RW For filled characters: Display outline

See Also

  lcPaint_DrawTextlcPaint_FontSelect